package com.ailot.cloud.upms.api.mapper;

import com.ailot.cloud.upms.common.entity.SysColumn;
import com.ailot.cloud.upms.common.entity.SysGen;
import com.ailot.cloud.upms.common.entity.SysTable;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author : litao
 * @create 2023/12/6 14:19
 */
public interface SysGenMapper extends BaseMapper<SysGen> {

    /**
     * 查询库里所有表集合
     *
     * @param tableName
     * @return
     */
    List<SysTable> tableList(@Param("dbName") String dbName, @Param("tableName") String tableName);

    /**
     * 查询表信息
     *
     * @param tableName
     * @return
     */
    SysTable table(@Param("dbName") String dbName, @Param("tableName") String tableName);

    /**
     * 查询列信息
     *
     * @param tableName
     * @return
     */
    List<SysColumn> columnList(@Param("dbName") String dbName, @Param("tableName") String tableName);

}
